//
// Created by Administrator on 2021/1/7.
//

#ifndef ENJOYPLAYER_ENJOYPLAYER_H
#define ENJOYPLAYER_ENJOYPLAYER_H


#include "JavaCallHelp.h"

class EnjoyPlayer {
public:
    EnjoyPlayer(JavaCallHelp *javaCallHelp);
    friend void * prepare_t(void* arg);
    void setDataSource(const char *path);

    void prepare();


public:
    char *mPath;
    pthread_t pthread;//因为要拿到线程相关信息,所以肯定不能定义为指针,除非函数内部通过二级指针给此对象赋值
    JavaCallHelp *mJavaCallHelp;
private:
    void ~prepare();
};


#endif //ENJOYPLAYER_ENJOYPLAYER_H
